package com.zy.web.demo.duoxiancheng.demo10;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/3 14:56
 */
public class MyThread10 {
    synchronized public void Main(){
        try {
            System.out.println("int begin = "+Thread.currentThread().getName()+"time="+System.currentTimeMillis());
            Thread.sleep(1000);
            System.out.println("int end = "+Thread.currentThread().getName()+"time="+System.currentTimeMillis());
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
